﻿using System;
using System.Data;
using System.Configuration;
using System.Collections;
using System.Web;
using System.Web.Security;
using System.Web.UI;
using System.Web.UI.WebControls;
using System.Web.UI.WebControls.WebParts;
using System.Web.UI.HtmlControls;
using Watson.Core.Tools;
using ITOMMS.Entity;

namespace ITOMMS.Web
{
    public partial class Directions : BasePage
    {
        public string sTitle1 = "";
        public string sContent1 = "";
        public string sTitle2 = "";
        public string sContent2 = "";
        public string sTitle3 = "";
        public string sContent3 = "";

        protected void Page_Load(object sender, EventArgs e)
        {
            if (!IsPostBack)
            {
                tbCustomerNeedToKnowEntity needToKnow = new Entity.tbCustomerNeedToKnowEntity();
                needToKnow = needToKnow.FindEntity("ClassType=1");
                if (needToKnow != null)
                {
                    sTitle1 = needToKnow.Title;
                    sContent1 = needToKnow.Content;
                }
                needToKnow = new Entity.tbCustomerNeedToKnowEntity();
                needToKnow = needToKnow.FindEntity("ClassType=2");
                if (needToKnow != null)
                {
                    sTitle2 = needToKnow.Title;
                    sContent2 = needToKnow.Content;
                }
                needToKnow = new Entity.tbCustomerNeedToKnowEntity();
                needToKnow = needToKnow.FindEntity("ClassType=3");
                if (needToKnow != null)
                {
                    sTitle3 = needToKnow.Title;
                    sContent3 = needToKnow.Content;
                }
            }
        }
    }
}
